#{extends 'mana-main.html' /}
#{set userActive :"active" /}
#{set title :"用户信息" /}
<br>
<br>
<br>
<br>
<br>
<p>当前注册人数${num}</p>
<form class="form-search" method="post" action="@{Activities.ShowUser}">
    <div class="input-append userlistsearch">
        <input type="text" class="span2 search-query" placeholder="输入用户名" name="query">
        <button type="submit" class="btn btn-primary">用户名搜索</button>
    </div>
</form>
#{if userList}
<table class="table table-hover table-bordered">
    <tr>
        <th width="20%">用户名</th>
        <th>账号</th>
        <th width="10%">查看信息</th>
    </tr>
    #{list userList, as:'item'}
    <tr>
        <td>${item.nickname}</td>
        <td>${item.account}</td>
        <td><a class="btn btn-info" href="@{Activities.ShowUserInfo(item.id)}">查看信息</a></td>
    </tr>
    #{/list}
</table>
#{/if}
#{else}
<div class="alert alert-error span6">没有符合条件的用户</div>
#{/else}
#{page pageBean: pageBean, params : params/}
